#include "VolumeUnit.h"
#include <string>
#include <stdio.h>

VolumeUnit::VolumeUnit(unsigned int convertToAmountFactor, const char* name, const Unit* next) 
  :Unit(convertToAmountFactor, name, next){

}

VolumeUnit& VolumeUnit::getTsp() {
  static VolumeUnit Tsp(1, "TSP", 0);
  return Tsp;
}
VolumeUnit& VolumeUnit::getTbsp() {
  static VolumeUnit Tbsp(3, "TBSP", &getTsp());
  return Tbsp;
}

VolumeUnit& VolumeUnit::getOz() {
  static VolumeUnit Oz(2*3, "OZ", &getTbsp());
  return Oz;
}
